<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>13_margin的注意事项3.html</title>
    <style>
      div {
        width: 200px;
        height: 200px;
        background-color: deepskyblue;
      }

      img {
        width: 100px;
        margin-left: 20px;
        margin-top: 10px;
      }

      span {
        margin: 20px;
      }
    </style>
  </head>
  <body>
    <!-- 由此可见对于行内元素来说，左右的margin是可以完美的设置的，上下的margin设置后是无效的 -->
    <div>JavaScript+nodejs</div>
    <hr />
    <img src="../../imgs/IMG_3120.jpeg" alt="" />
    <img src="../../imgs/IMG_3124.jpeg" alt="" />
    <hr />
    <span>Lorem, ipsum dolor.</span>
    <span>Lorem, ipsum.</span>
  </body>
</html>
